%*=+--+=#=+--      UAS Severe Weather Simulation Softeware        --+=#=+--+=#*%
%          Copyright (C) 2013 Regents of the University of Colorado.           %
%                             All Rights Reserved.                             %
%                                                                              %
%    This program is free software: you can redistribute it and/or modify      %
%    it under the terms of the GNU General Public License version 2 as         %
%    published by the Free Software Foundation.                                %
%                                                                              %
%    This program is distributed in the hope that it will be useful,           %
%    but WITHOUT ANY WARRANTY; without even the implied warranty of            %
%    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             %
%    GNU General Public License for more details.                              %
%                                                                              %
%    You should have received a copy of the GNU General Public License         %
%    along with this program.  If not, see <http://www.gnu.org/licenses/>.     %
%                                                                              %
%           Jack Elston                                                        %
%           elstonj@colorado.edu                                               %
%                                                                              %
%*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*%
clear all;

path(path,'scripts');
path(path,'sfunctions');
path(path,'models');
path(path,'models/tcp_udp_ip');
path(path,'models/execution_control');
path(path,'models/aerosim');
path(path,'models/aerosim/samples');

% stuff for weather
path(path,'../../data');
path(path,'../../scripts');

SampleTime           =  1 / 1000;                    % [s]
DestinationIpAddress = '128.138.75.148';
DestinationPort      = '12345';

reply = input('Open dynamics model? Y/N [N]:','s');
if ~ isempty(reply)
	if reply == 'y'
		open_system 'piccolo_hil_sim';
		return
	end
end

reply = input('Open weather model? Y/N [N]:','s');
if ~ isempty(reply)
	if reply == 'y'
		open_system 'weather_server';
	end
end
